package com.leoman.service;

import com.leoman.entity.LetterAnnex;
import com.leoman.service.common.ICommonService;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartRequest;

import java.util.List;

/**
 * LetterAnnexService
 * Created by 涂奕恒 on 2016/11/23 0023 下午 3:52.
 */
public interface LetterAnnexService extends ICommonService<LetterAnnex> {

    // 查询物品（分页）
    Page<LetterAnnex> pageByParams(String name, Integer type, String num, Integer pageNum, Integer pageSize);

    // 添加or修改物品信息
    Integer save(Integer letterAnnexId, String name, Integer type, String num, String money, String description, MultipartRequest multipartRequest);

    // 查询信纸列表
    List<LetterAnnex> findListByType(Integer type);
}